package com.bobaini.springcloud.repository;

import com.bobaini.springcloud.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * ClassName: DepartmentRepository
 * author: bob.ly
 * Version: 1.0.0
 * DateTime: 2021/04/15-22:41:00
 * Description: TODO
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {
    /**
     * 通过医院编码和部门编码找到科室
     *
     * @param hoscode
     * @param depcode
     * @return
     */
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
